//
//  ViewController.m
//  TestBundle1
//
//  Created by tanqilong on 16/7/22.
//  Copyright © 2016年 tanqilong. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSString * path = [[NSBundle mainBundle]pathForResource:@"Source" ofType:@"bundle"];
    NSString * strImage = [[NSBundle bundleWithPath:path] pathForResource:@"img" ofType:@"png"];
    UIImage * image = [UIImage imageWithContentsOfFile:strImage];
    UIImageView * imageView = [[UIImageView alloc]initWithImage:image];
    imageView.frame = CGRectMake(0, 100, 100, 100);
    [self.view addSubview:imageView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
